package com.ruoyi.electronicFence.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electronicFence.mapper.PersonLocationCardMapper;
import com.ruoyi.electronicFence.domain.PersonLocationCard;
import com.ruoyi.electronicFence.service.IPersonLocationCardService;

/**
 * person_locationService业务层处理
 *
 * @author sxygsj
 * @date 2024-04-10
 */
@Service
public class PersonLocationCardServiceImpl implements IPersonLocationCardService
{
    @Autowired
    private PersonLocationCardMapper personLocationCardMapper;

    /**
     * 查询person_location
     *
     * @param id person_location主键
     * @return person_location
     */
    @Override
    public PersonLocationCard selectPersonLocationCardById(Long id)
    {
        return personLocationCardMapper.selectPersonLocationCardById(id);
    }

    /**
     * 查询person_location列表
     *
     * @param personLocationCard person_location
     * @return person_location
     */
    @Override
    public List<PersonLocationCard> selectPersonLocationCardList(PersonLocationCard personLocationCard)
    {
        return personLocationCardMapper.selectPersonLocationCardList(personLocationCard);
    }

    /**
     * 新增person_location
     *
     * @param personLocationCard person_location
     * @return 结果
     */
    @Override
    public int insertPersonLocationCard(PersonLocationCard personLocationCard)
    {
        return personLocationCardMapper.insertPersonLocationCard(personLocationCard);
    }

    /**
     * 修改person_location
     *
     * @param personLocationCard person_location
     * @return 结果
     */
    @Override
    public int updatePersonLocationCard(PersonLocationCard personLocationCard)
    {
        return personLocationCardMapper.updatePersonLocationCard(personLocationCard);
    }

    /**
     * 批量删除person_location
     *
     * @param ids 需要删除的person_location主键
     * @return 结果
     */
    @Override
    public int deletePersonLocationCardByIds(Long[] ids)
    {
        return personLocationCardMapper.deletePersonLocationCardByIds(ids);
    }

    /**
     * 删除person_location信息
     *
     * @param id person_location主键
     * @return 结果
     */
    @Override
    public int deletePersonLocationCardById(Long id)
    {
        return personLocationCardMapper.deletePersonLocationCardById(id);
    }
}
